package com.steak.concurrent.CompletableFuture.api.run;

import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;

/**
 * @author 刘牌
 * @Title:
 * @date 2022/3/2716:29
 */
public class runAsyncTest {
    public static void main(String[] args) throws ExecutionException, InterruptedException {
        CompletableFuture<Void> future = CompletableFuture.runAsync(() -> {
            System.out.println("我是小四哥");
        });
        System.out.println(future.get());
    }
}
